#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
/*
int main()
{
	int a = 10;
	printf("%p\n",&a);
	printf("%d\n", a);
	int * pa = &a;
	*pa = 0;
	printf("%d\n", a);
	return 0;
}

*/





int main()
{
    char str[10000] = { 0 };
    gets(str);
    int len = strlen(str);
    char* left = str;
    char* right = str + len - 1;

    while (left < right)
    {
        char tmp = *right;
        *right = *left;
        *left = tmp;
        left++;
        right--;
    }
    printf("%s", str);
    return 0;
}